const express = require("express");
const router = express.Router();
const {
  getBooks,
  getBook,
  addBook,
  delBook,
  updateBook,
} = require("../router_handler/book");

router.get("/", getBooks);
router.get("/book/:id", getBook);
router.post("/add", addBook);
router.delete("/del/:id", delBook);
router.post("/update", updateBook);

module.exports = router;
